package com.cq.hd.member.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商家积分商城积分统计
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_business_points_mall_stat")
@ApiModel(value = "TbBusinessPointsMallStatPo对象", description = "商家积分商城积分统计")
public class TbBusinessPointsMallStatPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商家id")
    @TableField("business_id")
    private Long businessId;

    @ApiModelProperty(value = "积分商品数")
    @TableField("product_num")
    private Integer productNum;

    @ApiModelProperty(value = "积分用户数")
    @TableField("user_num")
    private Integer userNum;

    @ApiModelProperty(value = "累计支出积分")
    @TableField("total_pay_points")
    private BigDecimal totalPayPoints;

    @ApiModelProperty(value = "累计兑换积分")
    @TableField("total_exchanged_points")
    private BigDecimal totalExchangedPoints;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
